
<div class="player_list">
	<?php foreach($the_list as $player):?>
		<div class="player_list_row">
			<img src="http://localhost/assets/images/no_picture_profile.JPG">
			<div class="player_info">
				<?php $player = $player[0];
				?>
				<p>Player Name: <?php echo $player["Name"]; ?></p>

				<p>Home Town: </p>
				<p>High School: <?php echo $player["Team_Name"]; ?></p>
				<p>Year In School:<?php echo $player[" Class"]; ?></p>
				<p>Height: <?php echo $player[" Height"]; ?></p>
			</div>
			<div class="player_stats">
				<table>
					<tr>
						<th>PPG</th>
						<th>APG</th>
						<th>RPG</th>
						<th>SPG</th>
					</tr>
					<tr>
						<td><?php echo $player[" PPG"]; ?></td>
						<td><?php echo $player[" APG"]; ?></td>
						<td><?php echo $player[" RPG"]; ?></td>
						<td><?php echo $player[" SPG"]; ?></td>
					</tr>
					<tr>
						<th>FG%</th>
						<th>FT%</th>
						<th>TEAMPPG</th>
						<th>WIN%</th>
					</tr>
					<tr>
						<td><?php echo $player[" FG%"]; ?></td>
						<td><?php echo $player[" FT%"]; ?></td>
						<td><?php echo "ppg"; ?></td>
						<td><?php echo $player[" Win%"]; ?></td>
					</tr>
				</table>
			</div>
			<div class="player_rank">
				<div class="the_rank"><?php echo $player["generated_seva_score"]; ?></div>
				<div class="position"><?php// echo $player["position"]; ?></div>
			</div>
			<?php if(!$favorites_page):?><?php /*is this is not the favorites page, display the favorites button*/?>
			<form method='POST' action='#'>
				
				<input type='submit' name='favorite_player' value='add to favorites'><br>
			</form>
			<?php endif?>
		</div>
		<?php echo "<br>"?>
	<?php endforeach?>
</div>